package com.zqwzd.dao.impl;

import java.util.List;
import java.util.Map;

import com.zqwzd.dao.IUserDao;
import com.zqwzd.entity.User;

public class UserDaoImpl implements IUserDao {

	private IUserDao userMapper;
		
	public int countAll() {
		return userMapper.countAll();
	}
	public void delUser(User user) {
		userMapper.delUser(user);
	}
	public void addUser(User user) {
		userMapper.addUser(user);
	}
	public User login(User user) {
		return userMapper.login(user);
	}
	
	public List<User> queryPage(Map<String, Object> param) {
		return userMapper.queryPage(param);
	}
	public List<User> getAllUser() {
		return userMapper.getAllUser();
	}
	public IUserDao getUserMapper() {
		return userMapper;
	}
	public void setUserMapper(IUserDao userMapper) {
		this.userMapper = userMapper;
	}

	
}
